﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Single.Sugar.Service
{
    public static class QueryableExpansions
    {
        public static List<T> ToPageList<T>(this ISugarQueryable<T> query, int pageNumber, int pageSize, out int totalNumber)
        {
            totalNumber = 0; return query.ToPageList(pageNumber, pageSize, ref totalNumber);
        }
    }
}